﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZDSoft.UPMS.Model.SystemPart;
using ZDSoft.UPMS.Manager.SystemPart;
using ZDSoft.UPMS.Service.SystemPart;
using ZDSoft.UPMS.Core;

namespace ZDSoft.UPMS.Component.SystemPart
{
    public class RoleComponent : ComponentBase<Role, RoleManager>, IRoleService
    {
        RoleManager u = (RoleManager)typeof(RoleManager).GetConstructor(Type.EmptyTypes).Invoke(null);

        public new void Create(Role role)
        {
            u.Create(role);
        }
        public new void Update(Role entity)
        {
            u.Update(entity);
        }
        public new IList<Role> FindAll()
        {
            return u.FindAll();
        }
    }
}
